package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Student;
import com.itheima.edu.info.manager.service.StudentServicr;

import java.util.Scanner;

public class StudentController  extends  BaseStudentController{
    private  Scanner s = new Scanner(System.in);
    public Student newStu(String id){
        System.out.println("请输入姓名");
        String name = s.next();
        System.out.println("请输入年龄");
        String age = s.next();
        System.out.println("请输入生日");
        String birthday = s.next();

        Student newStu = new Student(id,name,age,birthday);

        return newStu;
    }
}
